package com.centit.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CommUtil {

	//USERINFO
	public static final String USER_TYPE="U";
	
	public static final String PRIMARY_UNIT="U00001";
	
	//USERROLE
	public static final String ROLE_CODE_PCT="0030";//省市县管理员权限

	public static final String ROLE_CODE_GENERAL="0031"; //省市县普通用户
	
	public static final String ROLE_CODE_TOWN="0032"; //镇级负责人权限
	
	public static final String ROLE_CODE_AZD="0033"; //安置点负责人权限

	public static final String ROLE_CODE_GR="0031";
	//行政类型 
	public static final String AREA="AREA"; //行政区划
	public static final String DEPT="DEPT"; //组织机构

	//省名称
	public static final String PROVINCECODE="610000"; //目前系统只应用于陕西省内
	
	public static final Map<String,String> USER_TYPE_MAP =new HashMap<>();
	static {
		USER_TYPE_MAP.put("01", "省级管理员");
		USER_TYPE_MAP.put("02", "市级管理员");
		USER_TYPE_MAP.put("03", "县级管理员");
		USER_TYPE_MAP.put("04", "省级用户");
		USER_TYPE_MAP.put("05", "市级用户");
		USER_TYPE_MAP.put("06", "县级用户");
		USER_TYPE_MAP.put("07", "镇级负责人");
		USER_TYPE_MAP.put("08", "安置点负责人");
		USER_TYPE_MAP.put(null, "无");
	}
	public static final Map<String,String> NOTIFY_TYPE_MAP =new HashMap<>();
	static {
		NOTIFY_TYPE_MAP.put("01", "通知类型1");
		NOTIFY_TYPE_MAP.put("02", "通知类型2");
		NOTIFY_TYPE_MAP.put("03", "通知类型3");
		NOTIFY_TYPE_MAP.put("04", "通知类型4");
		NOTIFY_TYPE_MAP.put(null, "无");
	}
	//USERUNIT
	public static final String USER_RANK="ST";
	
	public static final String USER_STATION="info";
	
	public   static   List  removeDuplicate(List list)  {       
		  for  ( int  i  =   0 ; i  <  list.size()  -   1 ; i ++ )  {       
		      for  ( int  j  =  list.size()  -   1 ; j  >  i; j -- )  {       
		           if  (list.get(j).equals(list.get(i)))  {       
		              list.remove(j);       
		            }        
		        }        
		      }        
		    return list;       
		}
	
	public static final String district[]= {"新城区","碑林区","莲湖区","灞桥区","未央区","雁塔区","阎良区","临潼区","长安区","高陵区","鄠邑区","蓝田县","周至县",
			"王益区","印台区","耀州区","渭滨区 ","金台区 ","陈仓区","凤翔县","岐山县","扶风县","眉县","陇县","千阳县","麟游县","凤县","太白县",
			"秦都区","杨凌示范区","渭城区","三原县 ","泾阳县 ","乾县","礼泉县","永寿县","长武县","旬邑县","淳化县","武功县","兴平市","彬州市",
			"临渭区","华州区","潼关县","大荔县 ","合阳县 ","澄城县","蒲城县","白水县","富平县","韩城市","华阴市"
	};
	 
	
	public static final String city[]= {"西安市","宝鸡市","铜川市","渭南市","咸阳市","韩城市"};
	



}
